﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="false" CodeFile="Track_application.aspx.vb" Inherits="UCMain_Track_application" %>

<%@ Register assembly="Brilliant.Presentation.WebControls" namespace="Brilliant.Presentation.WebControls" tagprefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width:100%">
    <tr>
        <td style="text-align: center" class="bgTable">Track Possession Application</td>
           <table style="width:100%">
            <tr>
                <td class="lblNormal" style="width25%; text-align: left;" colspan="3">
            <asp:Image ID="img" runat="server" Visible="False" />
            <asp:Label ID="lblerror" runat="server"></asp:Label>
                </td>
                <td class="auto-style47" style="width: 14%">
                    &nbsp;</td>
                <td class="lblNormal" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="bgTableHead" style="width25%; text-align: left; height: 5px;" colspan="5">TRACK POSSESION APPLICATION</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px; height: 36px;">Track Possesion&nbsp;&nbsp; Application by</td>
                <td class="auto-style49" style="width: 13%; height: 36px;">
                    <asp:TextBox ID="TxtReqBy" runat="server" 
                        style="margin-left: 0px; text-align: center;" Width="140px" 
                        CssClass="txtNormal"></asp:TextBox>
                </td>
                <td class="lblNormal" style="width: 10%; height: 36px;">Company/Section</td>
                <td class="auto-style47" style="width: 14%; height: 36px;">
                    <asp:TextBox ID="TxtCompReqBy" runat="server" Width="140px" 
                        CssClass="txtNormal"></asp:TextBox>
                </td>
                <td class="lblNormal" style="width: 36%; height: 36px;">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px; height: 36px;">Mobile Phone</td>
                <td class="auto-style49" style="width: 13%; height: 36px;">
                    <asp:TextBox ID="TxtTelReqBy" runat="server" MaxLength="10" Width="100px" 
                        CssClass="txtNormal"></asp:TextBox>
                </td>
                <td class="lblNormal" style="width: 10%; height: 36px;">&nbsp;</td>
                <td class="auto-style47" style="width: 14%; height: 36px;">
                    <asp:Label ID="lblIDPICopTrack" runat="server" Text="lblIDPICop" Visible="False"></asp:Label>
                </td>
                <td class="lblNormal" style="width: 36%; height: 36px;">&nbsp;</td>
            </tr>
            <tr>
                <td class="bgTableHead" style="width25%; text-align: left; height: 19px;" colspan="5">PERSON IN CHANGE</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px;">PICOP NO.</td>
                <td class="auto-style14" style="width: 13%; ">
                        <asp:TextBox ID="TxtPicopNo" runat="server" 
                            style="margin-left: 0px" Width="140px" CssClass="txtNormal"></asp:TextBox>
                    </td>
                <td class="auto-style45" style="width: 10%">
                    <asp:Button ID="btnSearch" runat="server" CssClass="txtNormal" Text="Search" />
                </td>
                <td class="auto-style45" style="width: 14%">
                    <asp:Label ID="lblIDPICop" runat="server" Text="lblIDPICop" Visible="False"></asp:Label>
                </td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px;">Person in charge of Possession </td>
                <td class="auto-style14" style="width: 13%; ">
                        <asp:TextBox ID="txtNamePICOP" runat="server" Width="140px" 
                            CssClass="lblDisable" ReadOnly="True"></asp:TextBox>
                    </td>
                <td class="lblNormal" style="width: 10%">
                    &nbsp;</td>
                <td class="auto-style45" style="width: 14%">
                        &nbsp;</td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px; height: 20px;">Company/Section</td>
                <td class="auto-style14" style="width: 13%; height: 20px;">
                        <asp:TextBox ID="TxtCompPicop" runat="server" Width="140px" 
                            CssClass="lblDisable" ReadOnly="True"></asp:TextBox>
                    </td>
                <td class="lblNormal" style="width: 10%; height: 20px;">Mobile Phone</td>
                <td class="auto-style45" style="width: 14%; height: 20px;">
                        <asp:TextBox ID="TxtTelPicop" runat="server" Width="140px" 
                            CssClass="lblDisable" ReadOnly="True"></asp:TextBox>
                    </td>
                <td class="auto-style22" style="width: 36%; height: 20px;"></td>
            </tr>
            <tr>
                <td class="bgTableHead" style="width25%; text-align: left; " colspan="5">WORK APPROVED</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px;">Work Approved by</td>
                <td class="auto-style14" style="width: 13%; ">
                        <asp:TextBox ID="TxtWorkApp" runat="server" CssClass="txtNormal" Width="140px"></asp:TextBox>
                    </td>
                <td class="lblNormal" style="width: 10%">Company/Section</td>
                <td class="auto-style45" style="width: 14%">
                        <asp:TextBox ID="TxtComWorkapp" runat="server" CssClass="txtNormal" Width="140px"></asp:TextBox>
                    </td>
                <td class="lblNormal" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px;">Mobile Phone</td>
                <td class="auto-style14" style="width: 13%; ">
                        <asp:TextBox ID="TxtTelWorkapp" runat="server" CssClass="txtNormal" Width="100px"></asp:TextBox>
                    </td>
                <td class="lblNormal" style="width: 10%">&nbsp;</td>
                <td class="auto-style45" style="width: 14%">
                        &nbsp;</td>
                <td class="lblNormal" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; width: 135px;">&nbsp;</td>
                <td class="auto-style14" style="width: 13%; ">
                    &nbsp;</td>
                <td class="auto-style45" style="width: 10%">&nbsp;</td>
                <td class="auto-style45" style="width: 14%">
                    &nbsp;</td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; width: 135px;">
          
            <table class="auto-style1">
                <tr>
                    <td class="lblNormal">Duration of work </td>
                  
                </tr>
            </table>
                </td>
                <td class="lblNormal" style="width: 13%; ">
                        start&nbsp;&nbsp;
                        <cc1:DatePicker ID="txtDateStart" runat="server" Language="English" Width="80px"></cc1:DatePicker>
                    </td>
                <td class="lblNormal" colspan="2">finish&nbsp;
                    <cc1:DatePicker ID="txtDateEnd" runat="server" Language="English" Width="80px"></cc1:DatePicker>
                </td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px;">Work location</td>
                <td class="lblNormal" style="width: 13%; ">
                        <asp:CheckBox ID="West" runat="server" Text="West bound" />
                        </td>
                <td class="lblNormal" style="width: 10%">
                        <asp:CheckBox ID="East" runat="server" Text="East Bound" />
                    </td>
                <td class="auto-style45" style="width: 14%">
                    &nbsp;</td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; width: 135px;">&nbsp;</td>
                <td class="auto-style14" colspan="3">
                        <asp:RadioButtonList ID="rdoWorkLocate" runat="server" Width="401px" 
                            CssClass="lblNormal" RepeatDirection="Horizontal" AutoPostBack="True">
                            <asp:ListItem Value="1">Specify by Station</asp:ListItem>
                            <asp:ListItem Value="2">Specify by Signal</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; width: 135px;">&nbsp;</td>
                <td class="lblNormal" colspan="3">
                    From&nbsp;&nbsp; <asp:DropDownList ID="DDlWorkLocate_From" runat="server" CssClass="txtNormal" Height="16px" Width="65px">
                        </asp:DropDownList>
                    &nbsp;
                    <asp:TextBox ID="txtDescript_area_from" runat="server" Width="120px"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    To<asp:DropDownList ID="DDlWorkLocate_To" runat="server" CssClass="txtNormal" Height="16px" Width="65px">
                        </asp:DropDownList>
                    &nbsp;<asp:TextBox ID="txtDescript_area_to" runat="server" Width="120px"></asp:TextBox>
                &nbsp;&nbsp;&nbsp;
                    </td>
                <td class="auto-style22" style="width: 36%">&nbsp; </td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; width: 135px;">&nbsp;</td>
                <td class="lblNormal" colspan="3">
                    &nbsp;From&nbsp;&nbsp; <asp:DropDownList ID="DDlWorkLocate_FromS" runat="server" CssClass="txtNormal" Height="16px" Width="65px" Enabled="False">
                        </asp:DropDownList>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To&nbsp;&nbsp; <asp:DropDownList ID="DDlWorkLocate_To0" runat="server" CssClass="txtNormal" Height="16px" Width="65px">
                        </asp:DropDownList>
                    &nbsp; </td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; height: 29px;" colspan="2">Power location level requried during work</td>
                <td class="auto-style45" style="width: 10%; height: 29px;"></td>
                <td class="auto-style45" style="width: 14%; height: 29px;">
                    </td>
                <td class="auto-style22" style="width: 36%; height: 29px;"></td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; width: 135px; height: 36px;"></td>
                <td class="auto-style14" style="width: 13%; height: 36px;">
                        <asp:RadioButtonList ID="RadioButtonEnergize" runat="server" Height="27px" 
                            RepeatDirection="Horizontal" Width="187px" CssClass="lblNormal">
                            <asp:ListItem>De-energize</asp:ListItem>
                            <asp:ListItem>energize</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                <td class="lblNormal" style="width: 10%; height: 36px;">Refer to STPA Standard&nbsp;&nbsp;</td>
                <td class="auto-style45" colspan="2" style="height: 36px">
                        <asp:CheckBoxList ID="CheckBoxE_1_6" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem>All</asp:ListItem>
                            <asp:ListItem>E1</asp:ListItem>
                            <asp:ListItem>E2</asp:ListItem>
                            <asp:ListItem>E3</asp:ListItem>
                            <asp:ListItem>E4</asp:ListItem>
                            <asp:ListItem>E5</asp:ListItem>
                            <asp:ListItem>E6</asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; width: 135px;">&nbsp;</td>
                <td class="auto-style14" style="width: 13%; ">
                    &nbsp;</td>
                <td class="auto-style45" style="width: 10%">&nbsp;</td>
                <td class="auto-style45" colspan="2">
                    <asp:CheckBoxList ID="CheckBoxW_1_6" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem>All</asp:ListItem>
                        <asp:ListItem>W1</asp:ListItem>
                        <asp:ListItem>W2</asp:ListItem>
                        <asp:ListItem>W3</asp:ListItem>
                        <asp:ListItem>E4</asp:ListItem>
                        <asp:ListItem>W5</asp:ListItem>
                        <asp:ListItem>W6</asp:ListItem>
                    </asp:CheckBoxList>
                </td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; height: 20px;" colspan="2">Train to be use or requested?</td>
                <td class="auto-style45" style="width: 10%; height: 20px;"></td>
                <td class="lblNormal" style="width: 14%; height: 20px;">
                    Vihecles to be use or requested?</td>
                <td class="auto-style22" style="width: 36%; height: 20px;"></td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; width: 135px;">&nbsp;</td>
                <td class="auto-style14" style="width: 13%; ">
                        <asp:RadioButtonList ID="rdoTrain_Vihicle" runat="server" Height="16px" 
                            RepeatDirection="Horizontal" Width="189px" CssClass="lblNormal" AutoPostBack="True">
                            <asp:ListItem>No</asp:ListItem>
                            <asp:ListItem>Yes</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                <td class="auto-style45" style="width: 10%">
                        <asp:CheckBoxList ID="chkT" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" DataSourceID="dsV" DataTextField="Vehicles" DataValueField="ID">
                        </asp:CheckBoxList>
                        <asp:AccessDataSource ID="dsV" runat="server" DataFile="~/App_Data/Senior_project.accdb" SelectCommand="SELECT [ID], [Vehicles] FROM [Vehicles] WHERE ([Type] = ?) ORDER BY [ID]">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="1" Name="Type" Type="Int32" />
                            </SelectParameters>
                        </asp:AccessDataSource>
                    </td>
                <td class="auto-style45" style="width: 14%">
                        <asp:RadioButtonList ID="rdoTrain_Vihicle2" runat="server" Height="16px" 
                            RepeatDirection="Horizontal" Width="189px" CssClass="lblNormal" AutoPostBack="True">
                            <asp:ListItem>No</asp:ListItem>
                            <asp:ListItem>Yes</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                <td class="auto-style22" style="width: 36%">
                        <asp:CheckBoxList ID="chkV" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" DataSourceID="dsV2" DataTextField="Vehicles" DataValueField="ID">
                        </asp:CheckBoxList>
                        <asp:AccessDataSource ID="dsV2" runat="server" DataFile="~/App_Data/Senior_project.accdb" SelectCommand="SELECT [ID], [Vehicles] FROM [Vehicles] WHERE ([Type] = ?) ORDER BY [ID]">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="2" Name="Type" Type="Int32" />
                            </SelectParameters>
                        </asp:AccessDataSource>
                    </td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; width: 135px;">&nbsp;</td>
                <td class="auto-style14" style="width: 13%; ">
                    &nbsp;</td>
                <td class="auto-style45" style="width: 10%">&nbsp;</td>
                <td class="auto-style45" style="width: 14%">
                    &nbsp;</td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px;">Description of work</td>
                <td class="auto-style14" colspan="3">
                        <asp:TextBox ID="TextDes_work" runat="server" style="margin-left: 0px" 
                            CssClass="txtNormal" Height="43px" Width="533px"></asp:TextBox>
                    </td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px;">&nbsp;</td>
                <td class="auto-style14" style="width: 13%; ">
                        &nbsp;&nbsp;</td>
                <td class="auto-style45" style="width: 10%">&nbsp;</td>
                <td class="auto-style45" style="width: 14%">
                    &nbsp;</td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style3" style="width:25%; text-align: left; width: 135px;">&nbsp;</td>
                <td class="auto-style14" style="width: 13%; ">
                        <asp:Button ID="Button_Submit" runat="server" Text="Submit" 
                            CssClass="txtNormal" />
&nbsp;<asp:Button ID="Button_clear" runat="server" Text="Clear " 
                            CssClass="txtNormal" />
                    </td>
                <td class="auto-style45" style="width: 10%">&nbsp;</td>
                <td class="auto-style45" style="width: 14%">
                    &nbsp;</td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            </table>
       
          
        
    </tr>
</table>
</asp:Content>
